From 4aeca6c61a47625ce6b16930a7c96336fa00d5eb Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bj=C3=B6rn=20Lindqvist?= Date: Sat, 24 May 2008 16:51:38 +0000 Subject: [PATCH] Update docstring to match pango_color_parse, do not reference XParseColor MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 2008-05-24 Björn Lindqvist * gdk/gdkcolor.c (gdk_color_parse): Update docstring to match pango_color_parse, do not reference XParseColor forms (#434991). svn path=/trunk/; revision=20135 --- ChangeLog | 5 +++++ gdk/gdkcolor.c | 23 ++++++++++++----------- 2 files changed, 17 insertions(+), 11 deletions(-) diff --git a/ChangeLog b/ChangeLog index d6a73c3166..52f81222ff 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-24 Björn Lindqvist + + * gdk/gdkcolor.c (gdk_color_parse): Update docstring to match + pango_color_parse, do not reference XParseColor forms (#434991). + 2008-05-24 James Sharpe * gdk/gdk.symbols: Remove duplicate diff --git a/gdk/gdkcolor.c b/gdk/gdkcolor.c index 4c3d88ebe6..6a513a3e28 100644 --- a/gdk/gdkcolor.c +++ b/gdk/gdkcolor.c @@ -316,17 +316,18 @@ gdk_color_get_type (void) * @spec: the string specifying the color. * @color: the #GdkColor to fill in * - * Parses a textual specification of a color and fill in - * the red, - * green, and - * blue fields of a - * #GdkColor structure. The color is not - * allocated, you must call gdk_colormap_alloc_color() yourself. - * The text string can be in any of the forms accepted - * by XParseColor; these include - * name for a color from rgb.txt, such as - * DarkSlateGray, or a hex specification - * such as #3050b2 or #35b. + * Parses a textual specification of a color and fill in the + * red, green, + * and blue fields of a #GdkColor + * structure. The color is not allocated, you + * must call gdk_colormap_alloc_color() yourself. The string can + * either one of a large set of standard names. (Taken from the X11 + * rgb.txt file), or it can be a hex value in the + * form '#rgb' '#rrggbb' '#rrrgggbbb' or + * '#rrrrggggbbbb' where 'r', 'g' and 'b' are hex digits of the + * red, green, and blue components of the color, respectively. (White + * in the four forms is '#fff' '#ffffff' '#fffffffff' and + * '#ffffffffffff') * * Return value: %TRUE if the parsing succeeded. **/ -- 2.30.2